
const defaultState = {
    n:10
}

function DashBoardReducer(state= defaultState,action){

    switch (action.type){
        case "NUM_ADD":
            let numState  = Object.assign({},state)
            numState.n++
            return numState
        default:
            break
    }
    return state
}

export default DashBoardReducer